package day7;

/**
 * @author oldliu
 * @since 1.0
 */
public class ByteTest {
    public static void main(String[] args) {
        byte b = 127;//补码机制
        System.out.println(b);
        b++;//溢出
        System.out.println(b);
        int i = 2147483647;
        i++;
        System.out.println(i);
        byte b2 = 100;
        int k = 100;//内部做了处理
        byte b3 = (byte) k;
        float f = 3.16F;
        long l = 1000L;

    }
}
